@extends('admin.layout')
@section('title',$title)
@section('content')
	<div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                卖家管理
                <small>卖家管理添加页面</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 卖家管理</a></li>
                <li class="active">卖家添加</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">卖家添加</h3>
                        </div>
                        
                        <!-- 添加失败时的提示信息 -->
                        @if(session('error'))
                            {{session('error')}}
                        @endif
                        
                        <!-- 限制条件不符合是的提示信息 -->
                        @if (count($errors) > 0)
                            <div class="alert alert-danger">
                                <ul>
                                    @foreach ($errors->all() as $error)
                                        <li>{{ $error }}</li>
                                    @endforeach
                                </ul>
                            </div>
                        @endif
                        
                        <!-- form start -->
                        <form role="form" action="/admin/seller/insert" method="post" enctype="multipart/form-data">
                            {{ csrf_field() }}
                            <div class="box-body">
                                <div class="form-group">
                                    <label for="exampleInputEmail1">卖家名</label>
                                    <input type="text" name="name" value="{{old('name')}}" class="form-control" id="exampleInputEmail1"
                                           placeholder="请输入6-18位的卖家名">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">密码</label>
                                    <input type="password" name="password" class="form-control" id="exampleInputPassword1"
                                           placeholder="请输入8-16位密码">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">确认密码</label>
                                    <input type="password" name="repassword" class="form-control" id="exampleInputPassword1"
                                           placeholder="请确认密码">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">邮箱</label>
                                    <input type="email" value="{{old('email')}}" name="email" class="form-control" id="exampleInputPassword1"
                                           placeholder="请输入正确的邮箱">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">手机</label>
                                    <input type="text" name="phone" value="{{old('phone')}}" class="form-control" id="exampleInputPassword1"
                                           placeholder="请输入11位手机号">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputPassword1">qq</label>
                                    <input type="text" name="qq" value="{{old('qq')}}" class="form-control" id="exampleInputPassword1"
                                           placeholder="请输入qq号">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputFile">个人头像</label>
                                    <ul id="warp">
                                        <li style="list-style-type: none;">
                                            <img id="imgShow_WU_FILE_0" width="200" height="200" />
                                            <input type="file" id="up_img_WU_FILE_0" name="pic" />
                                        </li>
                                    </ul>
                                    <p class="help-block">请输入漂亮的图片</p>
                                </div>
                                
                            </div><!-- /.box-body -->

                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">添加</button>
                                <button type="submitreset" class="btn btn-danger">重置</button>
                            </div>
                        </form>
                    </div><!-- /.box -->

                   
                </div><!--/.col (left) -->

            </div>   <!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
@endsection
